package com.tbit.main.pojo.maintain_performance.stat;

import lombok.Data;

import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 * 绩效统计响应
 *
 * @author: qiu.longjie
 * @create: 2025-04-15
 */
@Data
public class PerformanceCountResp {
    /**
     * 总次数
     */
    private Integer total;
    /**
     * 绩效总和
     */
    private BigDecimal performanceSum;

    public BigDecimal getPerformanceSum() {
        if (performanceSum != null) {
            return performanceSum.setScale(1, RoundingMode.HALF_UP);
        }
        return BigDecimal.ZERO;
    }
}
